import JsonData from "../../Json.js";
let { brideName, groomName, sharePhoto, videUrl} = JsonData.invite;
Page({
  data: {
    videoContext:null,
    videUrl: videUrl,
  },
  onLoad: function(i) {
    
  },
  onReady: function() {
    this.videoContext = wx.createVideoContext("myVideo");
  },
  onShow: function() {},
  onHide: function() {},
  onUnload: function() {},
  onShareAppMessage: function (e) {
    return "button" === e.from && console.log(e.target), {
      title: `${brideName}&${groomName}的结婚邀请函`,
      path: "pages/index/index",
      imageUrl: sharePhoto,
      success: function (res) {
        console.log("转发成功:" + JSON.stringify(res));
      },
      fail: function (err) {
        console.log("转发失败:" + JSON.stringify(err));
      }
    };
  }
});